<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    
    <title>Nginx环境搭建 | Sean&#39;s Blog | why so serious ?</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="环境搭建">
    <meta name="description" content="下载 安装 番外  下载 免费开源 Nginx免费开源地址 有 Windows 和 Linux 版本, 但推荐 Linux 下载 nginx … … tar.gz 的源代码文件, copy下方代码块并回车执行12# &#39;... ...&#39; 确定要下载的版本, 建议先访问 &#39;Nginx免费开源地址挑选版本&#39;wget http:&#x2F;&#x2F;nginx.org&amp;">
<meta property="og:type" content="article">
<meta property="og:title" content="Nginx环境搭建">
<meta property="og:url" content="http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/index.html">
<meta property="og:site_name" content="Sean&#39;s Blog">
<meta property="og:description" content="下载 安装 番外  下载 免费开源 Nginx免费开源地址 有 Windows 和 Linux 版本, 但推荐 Linux 下载 nginx … … tar.gz 的源代码文件, copy下方代码块并回车执行12# &#39;... ...&#39; 确定要下载的版本, 建议先访问 &#39;Nginx免费开源地址挑选版本&#39;wget http:&#x2F;&#x2F;nginx.org&amp;">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-06-17T02:22:48.000Z">
<meta property="article:modified_time" content="2020-08-26T02:11:00.053Z">
<meta property="article:author" content="Sean">
<meta property="article:tag" content="环境搭建">
<meta name="twitter:card" content="summary">
    
        <link rel="alternate" type="application/atom+xml" title="Sean&#39;s Blog" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

<meta name="generator" content="Hexo 4.2.1"></head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">Sean</h5>
          <a href="mailto:inoubliable_s@163.com" title="inoubliable_s@163.com" class="mail">inoubliable_s@163.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                归档
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                标签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                分类
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/Sean-inoubliable" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Nginx环境搭建</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Nginx环境搭建</h1>
        <h5 class="subtitle">
            
                <time datetime="2020-06-17T02:22:48.000Z" itemprop="datePublished" class="page-time">
  2020-06-17
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/Nginx/">Nginx</a></li></ul>

            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap post-toc-shrink" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#下载"><span class="post-toc-number">1.</span> <span class="post-toc-text">下载</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#安装"><span class="post-toc-number">2.</span> <span class="post-toc-text">安装</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#安装前准备"><span class="post-toc-number">2.1.</span> <span class="post-toc-text">安装前准备</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#正式安装"><span class="post-toc-number">2.2.</span> <span class="post-toc-text">正式安装</span></a></li></ol></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#番外篇"><span class="post-toc-number">3.</span> <span class="post-toc-text">番外篇</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#启动"><span class="post-toc-number">3.1.</span> <span class="post-toc-text">启动</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#1-普通启动-cd-到-nginx-的-sbin-目录下"><span class="post-toc-number">3.1.1.</span> <span class="post-toc-text">1. 普通启动 ( cd 到 nginx 的 sbin 目录下 )</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#2-通过配置文件启动"><span class="post-toc-number">3.1.2.</span> <span class="post-toc-text">2. 通过配置文件启动</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#3-检查是否启动"><span class="post-toc-number">3.1.3.</span> <span class="post-toc-text">3. 检查是否启动</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#关闭-lt-多种方式-gt"><span class="post-toc-number">3.2.</span> <span class="post-toc-text">关闭 &lt;多种方式&gt;</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#1-优雅关闭"><span class="post-toc-number">3.2.1.</span> <span class="post-toc-text">1. 优雅关闭</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#2-快速关闭"><span class="post-toc-number">3.2.2.</span> <span class="post-toc-text">2. 快速关闭</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#3-重启-Nginx"><span class="post-toc-number">3.2.3.</span> <span class="post-toc-text">3. 重启 Nginx</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#配置检查"><span class="post-toc-number">3.3.</span> <span class="post-toc-text">配置检查</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#其他"><span class="post-toc-number">3.4.</span> <span class="post-toc-text">其他</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#Windows环境搭建"><span class="post-toc-number">3.5.</span> <span class="post-toc-text">Windows环境搭建</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#启动方式"><span class="post-toc-number">3.5.1.</span> <span class="post-toc-text">启动方式</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#关闭方式"><span class="post-toc-number">3.5.2.</span> <span class="post-toc-text">关闭方式</span></a></li></ol></li></ol></li></ol>
        </nav>
    </aside>


<article id="post-Nginx环境搭建"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Nginx环境搭建</h1>
        <div class="post-meta">
            <time class="post-time" title="2020-06-17 10:22:48" datetime="2020-06-17T02:22:48.000Z"  itemprop="datePublished">2020-06-17</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/Nginx/">Nginx</a></li></ul>



            

        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <ul>
<li>下载</li>
<li>安装</li>
<li>番外</li>
</ul>
<h2 id="下载"><a href="#下载" class="headerlink" title="下载"></a>下载</h2><ul>
<li>免费开源 <a href="http://www.nginx.org" target="_blank" rel="noopener">Nginx免费开源地址</a></li>
<li>有 Windows 和 Linux 版本, 但推荐 Linux</li>
<li>下载 nginx … … tar.gz 的源代码文件, copy下方代码块并回车执行<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># &#39;... ...&#39; 确定要下载的版本, 建议先访问 &#39;Nginx免费开源地址挑选版本&#39;</span><br><span class="line">wget http:&#x2F;&#x2F;nginx.org&#x2F;download&#x2F;nginx ... ... tar.gz</span><br></pre></td></tr></table></figure>


</li>
</ul>
<h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><h3 id="安装前准备"><a href="#安装前准备" class="headerlink" title="安装前准备"></a>安装前准备</h3><blockquote>
<p><strong><em>Nginx的安装</em></strong> 需要Linux安装相关的几个库, 否则配置和编译会出现问题</p>
</blockquote>
<ol>
<li><strong>gcc 编译器</strong><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">yum list installed | grep gcc</span><br><span class="line">yum install gcc -y</span><br></pre></td></tr></table></figure></li>
<li><strong>openssl库</strong><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">yum list installed | grep openssl</span><br><span class="line">yum install openssl openssl-devel -y</span><br></pre></td></tr></table></figure></li>
<li><strong>pcre库</strong><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">yum list installed | grep pcre</span><br><span class="line">yum list install pcre pcre-devel -y</span><br></pre></td></tr></table></figure></li>
<li><strong>zlib库</strong><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">yum list installed | grep zlib</span><br><span class="line">yum install zlib zlib-devel -y</span><br></pre></td></tr></table></figure>
<blockquote>
<p>一次性安装, 命令:</p>
</blockquote>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># -y 表示自动确认 </span><br><span class="line">yum install gcc openssl openssl-devel pcre pcre-devel zlib zlib-devel -y</span><br></pre></td></tr></table></figure>

</li>
</ol>
<h3 id="正式安装"><a href="#正式安装" class="headerlink" title="正式安装"></a>正式安装</h3><ol>
<li>解压下载下来的 Nginx 文件<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># 确定下载版本</span><br><span class="line">tar -zxvf nginx ... ... tar.gz</span><br></pre></td></tr></table></figure></li>
<li>切换至解压后的 Nginx 主目录<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cd ... ...</span><br></pre></td></tr></table></figure></li>
<li>指定路径安装<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># --prefix 指定安装路径</span><br><span class="line">.&#x2F;configure --prefix &#x3D; &#x2F;usr&#x2F;local&#x2F;nginx</span><br></pre></td></tr></table></figure></li>
<li>编译<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># 使用gcc编译</span><br><span class="line">make</span><br></pre></td></tr></table></figure></li>
<li>安装<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">make install</span><br></pre></td></tr></table></figure>
<blockquote>
<p>安装后的文件夹</p>
</blockquote>
</li>
</ol>
<ul>
<li><strong>conf</strong> 配置, nginx.conf 核心</li>
<li><strong>html</strong> 服务器默认访问模版页</li>
<li><strong>logs</strong> 日志</li>
<li><strong>sbin</strong> nginx 启动程序</li>
</ul>
<hr>
<h2 id="番外篇"><a href="#番外篇" class="headerlink" title="番外篇"></a>番外篇</h2><h3 id="启动"><a href="#启动" class="headerlink" title="启动"></a>启动</h3><h4 id="1-普通启动-cd-到-nginx-的-sbin-目录下"><a href="#1-普通启动-cd-到-nginx-的-sbin-目录下" class="headerlink" title="1. 普通启动 ( cd 到 nginx 的 sbin 目录下 )"></a>1. 普通启动 ( cd 到 nginx 的 sbin 目录下 )</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># 执行命令</span><br><span class="line">.&#x2F;nginx</span><br></pre></td></tr></table></figure>
<h4 id="2-通过配置文件启动"><a href="#2-通过配置文件启动" class="headerlink" title="2. 通过配置文件启动"></a>2. 通过配置文件启动</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"># 启动程序 -c 配置文件</span><br></pre></td></tr></table></figure>
<h4 id="3-检查是否启动"><a href="#3-检查是否启动" class="headerlink" title="3. 检查是否启动"></a>3. 检查是否启动</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># 由 master 和 worker 进程组成, master 进程读取配置文件并维护 worker 进程, worker 进程则对请求进行实际处理</span><br><span class="line">ps -ef | grep nginx</span><br></pre></td></tr></table></figure>

<h3 id="关闭-lt-多种方式-gt"><a href="#关闭-lt-多种方式-gt" class="headerlink" title="关闭 &lt;多种方式&gt;"></a>关闭 &lt;多种方式&gt;</h3><h4 id="1-优雅关闭"><a href="#1-优雅关闭" class="headerlink" title="1. 优雅关闭"></a>1. 优雅关闭</h4><blockquote>
<p>此方式不会影响已经进入的请求, 将其处理完后, 才会关闭</p>
</blockquote>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"># 找到 nginx 进程号</span><br><span class="line">ps -ef | grep nginx</span><br><span class="line"># 执行命令</span><br><span class="line">kill -QUIT &#39;主pid&#39;</span><br><span class="line"># 其中 pid 是主进程号的 pid (master process)</span><br><span class="line"># 其他为子进程 pid (worker process)</span><br></pre></td></tr></table></figure>

<h4 id="2-快速关闭"><a href="#2-快速关闭" class="headerlink" title="2. 快速关闭"></a>2. 快速关闭</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"># 找到 nginx 进程号</span><br><span class="line">ps -ef | grep nginx</span><br><span class="line"># 执行命令</span><br><span class="line">kill -TERM &#39;主pid&#39;</span><br></pre></td></tr></table></figure>

<h4 id="3-重启-Nginx"><a href="#3-重启-Nginx" class="headerlink" title="3. 重启 Nginx"></a>3. 重启 Nginx</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.&#x2F;nginx -s reload</span><br></pre></td></tr></table></figure>

<h3 id="配置检查"><a href="#配置检查" class="headerlink" title="配置检查"></a>配置检查</h3><blockquote>
<p>当修改 Nginx 配置文件后, 可以使用 Nginx 命令进行配置文件语法检查, 用于检查 Nginx 配置文件是否正确</p>
</blockquote>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"># ... ... nginx配置文件地址</span><br><span class="line">.&#x2F;nginx -c &#x2F;... ...&#x2F;nginx.conf -t</span><br></pre></td></tr></table></figure>

<h3 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"># 查看 Nginx 版本</span><br><span class="line">.&#x2F;nginx -v</span><br><span class="line">.&#x2F;nginx -V</span><br><span class="line"># 小v 显示 Nginx 版本</span><br><span class="line"># 大V 显示 Nginx 版本, 编译器版本和配置参数</span><br></pre></td></tr></table></figure>

<h3 id="Windows环境搭建"><a href="#Windows环境搭建" class="headerlink" title="Windows环境搭建"></a>Windows环境搭建</h3><blockquote>
<p>在官网下载 windows 版的 Nginx, 将下载包解压即可使用</p>
</blockquote>
<p><a href="https://www.nginx.org/en/download.html" target="_blank" rel="noopener">Windows Nginx 地址</a></p>
<h4 id="启动方式"><a href="#启动方式" class="headerlink" title="启动方式"></a>启动方式</h4><ol>
<li>双击目录下的 nginx</li>
<li>dos 窗口, nginx 主目录下, 命令 start nginx<h4 id="关闭方式"><a href="#关闭方式" class="headerlink" title="关闭方式"></a>关闭方式</h4></li>
<li>资源管理器 ( 两个进程 )</li>
<li>dos 窗口, nginx 主目录下, 命令 nginx -s stop</li>
</ol>

        </div>

        <blockquote class="post-copyright">
    
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2020-08-26T02:11:00.053Z" itemprop="dateUpdated">2020-08-26 10:11:00</time>
</span><br>


        
        这里可以写作者留言，标签和 hexo 中所有变量及辅助函数等均可调用，示例：<a href="/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" target="_blank" rel="external">http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/</a>
        
    </div>
    
    <footer>
        <a href="http://www.some-note.cn">
            <img src="/img/avatar.jpg" alt="Sean">
            Sean
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" rel="tag">环境搭建</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/&title=《Nginx环境搭建》 — Sean's Blog&pic=http://www.some-note.cn/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/&title=《Nginx环境搭建》 — Sean's Blog&source=何必那么认真" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Nginx环境搭建》 — Sean's Blog&url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/&via=http://www.some-note.cn" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2020/06/18/Ngxin%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">Ngxin配置文件</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2020/06/16/Nginx%E5%BC%80%E7%AF%87%E7%AE%80%E4%BB%8B/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">Nginx开篇简介</h4>
      </a>
    </div>
  
</nav>



    




















</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        喝杯咖啡
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/img/wechat.jpg" alt="打赏二维码">
        </div>
        
        <label class="reward-toggle">
            <input id="rewardToggle" type="checkbox" class="reward-toggle-check"
                data-wechat="/img/wechat.jpg" data-alipay="/img/alipay.jpg">
            <div class="reward-toggle-ctrol">
                <span class="reward-toggle-item wechat">微信</span>
                <span class="reward-toggle-label"></span>
                <span class="reward-toggle-item alipay">支付宝</span>
            </div>
        </label>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="top">
        

        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>博客内容遵循 <a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" target="_blank">知识共享 署名 - 非商业性 - 相同方式共享 4.0 国际协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p><span>Sean &copy; 2020</span>
            <span>
                
                Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
            </span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/&title=《Nginx环境搭建》 — Sean's Blog&pic=http://www.some-note.cn/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/&title=《Nginx环境搭建》 — Sean's Blog&source=何必那么认真" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Nginx环境搭建》 — Sean's Blog&url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/&via=http://www.some-note.cn" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="//api.qrserver.com/v1/create-qr-code/?data=http://www.some-note.cn/2020/06/17/Nginx%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };


</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>








<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = '死鬼去哪里了！';
            clearTimeout(titleTime);
        } else {
            document.title = '(つェ⊂)咦!又好了!';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
